/*
 * Copyright (C), 2015-2019
 * FileName: Main
 * Author:   zhao
 * Date:     2019/1/9 20:31
 * Description: main函数
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.lizhaoblog.jjvm;

import com.lizhaoblog.jjvm.util.ByteUtil;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

/**
 * 〈一句话功能简述〉<br>
 * 〈main函数〉
 *
 * @author zhao
 * @date 2019/1/9 20:31
 * @since 1.0.0
 */
public class Main {
    public static void main(String[] args) throws IOException {
//        System.out.println("Hello World");
//        String proRootDir = System.getProperty("user.dir");
//        String resourceDir = "\\src\\main\\resources\\testclass\\";
//        String fileName = "Main.class";
//        //    File file = new File();
//        String finalFilePathStr = proRootDir + resourceDir + fileName;
//
//        System.out.println(finalFilePathStr);
//        byte[] bytes = Files.readAllBytes(Path.of(finalFilePathStr));
//        int count = 0;
//        for (int i = 0; i < bytes.length; i++) {
//            System.out.print(ByteUtil.intToHex(bytes[i]));
//            System.out.print(" ");
//            count++;
//            if (count > 15) {
//                System.out.println();
//                count = 0;
//            }
//        }
    }

}